package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-06-24
 * Time: 14:03
 */
public class staticClass {
    public static void main(String[] args) {
        OuterClass03 outerClass033 = new OuterClass03();
        //方法一：
        OuterClass03.InnerClass03 outerClass03 = new OuterClass03.InnerClass03();
        outerClass03.print03();
        //方法二：
        OuterClass03.InnerClass03 outerClass04 = outerClass033.getClass03();
        outerClass04.print03();
    }
}

class OuterClass03 {
    static class InnerClass03 {
        public String name;
        public void print03() {
            System.out.println("haha");
        }
    }
    InnerClass03 getClass03() {
        return new InnerClass03();
    }
}
